Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix double login URL with OIDC #2445

Merged
merged 4 commits into from
Feb 25, 2025
Merged

Conversation

kradalby
Copy link
Collaborator

@kradalby kradalby commented Feb 24, 2025

Fixes #2441

what essentially happens is:
node tries to register, gets URL
node reopens the connection with a "followup url"
registration code sits in the followup and waits for the registration to complete
error goes here: it didnt return when the followup finished, it continued the code and sent a new registration url

Signed-off-by: Kristoffer Dalby <[email protected]>
@kradalby kradalby marked this pull request as ready for review February 25, 2025 10:18
@kradalby kradalby requested a review from juanfont as a code owner February 25, 2025 10:18
@kradalby kradalby changed the title double login URL fix double login URL with OIDC Feb 25, 2025
@kradalby kradalby force-pushed the kradalby/double-redir branch from aa5c16c to 13dd6f0 Compare February 25, 2025 13:52
@kradalby kradalby merged commit 1686819 into juanfont:main Feb 25, 2025
139 of 145 checks passed
kradalby added a commit to kradalby/headscale that referenced this pull request Feb 25, 2025
* factor out login url parser

Signed-off-by: Kristoffer Dalby <[email protected]>

* move to not trigger test gen checker

Signed-off-by: Kristoffer Dalby <[email protected]>

* return regresp or err after waiting for registration

Signed-off-by: Kristoffer Dalby <[email protected]>

* update changelog

Signed-off-by: Kristoffer Dalby <[email protected]>

---------

Signed-off-by: Kristoffer Dalby <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] OIDC Register/Login Page Opens Twice
2 participants